package siftest.facebookandroid;

import android.graphics.Color;
import android.widget.LinearLayout;

public class Interface {
	// width, height display
	static double width_top = 0.1;
	static double width_content = 0.5;
	static double width_bottom = 0.2;
	
	// include layout
	public static LinearLayout menu_top;
	public static LinearLayout menu_bottom;
	public static LinearLayout menu_content ;
	//
	public static LinearLayout getMenu_Top(LinearLayout layout, int width,
			int height) {
		layout.setBackgroundColor(Color.BLUE);
		int a = width;
		int b = (int) (height * width_top);
		layout.setLayoutParams(new LinearLayout.LayoutParams(a, b));
		layout.setGravity(1);
		return layout;
	}

	public static LinearLayout getMenu_Content(LinearLayout layout, int width,
			int height) {
		layout.setBackgroundColor(Color.CYAN);
		int a = width;
		int b = (int) (height * width_content);
		layout.setLayoutParams(new LinearLayout.LayoutParams(a, b));
		return layout;
	}

	public static LinearLayout getMenu_Bottom(LinearLayout layout, int width,
			int height) {
		int a = width;
		int b = (int) (height * width_bottom);
		layout.setLayoutParams(new LinearLayout.LayoutParams(a, b));
		layout.setBackgroundColor(Color.GRAY);
		return layout;
	}

}
